package com.css.zfzx.sjcj.modules.hddcStation.repository;

import com.css.zfzx.sjcj.modules.hddcStation.repository.entity.HddcStationEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author zyb
 * @date 2020-11-28
 */
public interface HddcStationRepository extends JpaRepository<HddcStationEntity, String> {
    @Query(nativeQuery = true, value = "select * from hddc_Station where project_name in :projectIds")
    List<HddcStationEntity> queryHddcStationsByProjectId(List<String> projectIds);
    @Query(nativeQuery = true, value = "select * from hddc_Station where task_name in :projectIds")
    List<HddcStationEntity> queryHddcStationsByTaskId(List<String> projectIds);
}
